From b135765aaa5609a97a94c5f6eea05372ee9cf40d Mon Sep 17 00:00:00 2001 From: "Karl O. Pinc" Date: Wed, 25 Sep 2024 11:40:58 -0500 Subject: [PATCH] Use child CSS selectors so we only have to attach class to the table body --- src/pgwui_sql/static/show_whitespace.css | 6 +++--- src/pgwui_sql/templates/sql.mak | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/pgwui_sql/static/show_whitespace.css b/src/pgwui_sql/static/show_whitespace.css index 69c86f2..1dbd30d 100644 --- a/src/pgwui_sql/static/show_whitespace.css +++ b/src/pgwui_sql/static/show_whitespace.css @@ -21,7 +21,7 @@ * Karl O. Pinc */ -td.sqltext { text-decoration-line: underline; - text-decoration-color: silver; - text-decoration-style: double; } +tbody.sqltext > tr > td { text-decoration-line: underline; + text-decoration-color: silver; + text-decoration-style: double; } diff --git a/src/pgwui_sql/templates/sql.mak b/src/pgwui_sql/templates/sql.mak index 29a801a..182ca09 100644 --- a/src/pgwui_sql/templates/sql.mak +++ b/src/pgwui_sql/templates/sql.mak @@ -102,7 +102,7 @@ <%def name="render_row(data)"> % for item in data: - ${item} + ${item} % endfor @@ -132,7 +132,7 @@ % if result_row.heading is not None: ${self.render_heading(result_row.heading.data)} % endif - + % for row in result_row.rows: ${self.render_row(row.data)} % endfor -- 2.34.1